package com.xueyu.util;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

@Data
public class ResultBean extends HashMap<String,Object> {
    private int code;
    private String msg;
    public ResultBean(){
        put("code",200);
        put("msg","操作成功");

    }
    public ResultBean(int code,String msg){
        put("code",code);
        put("msg",msg);
    }


}
